//使用scanf()函数和printf()函数,并用printf()函数修饰符控制输出格式,使用转义符号显示双引号
#include <stdio.h>
#include <string.h>

#define wide 3

int main(void)
{   
    char name[40];
    int lenth;

    printf("Please enter your name: ");
    scanf("%s", name);

    lenth = strlen(name) + wide;

    printf("\"%s\"\n", name);
    printf("\"%20s\"\n", name);
    printf("\"%-20s\"\n", name);
    printf("\"%*s\"\n", lenth, name);

    return 0;
}